package com.meiqiongproperty.yiguanjia.http.model;

import com.google.gson.Gson;

/**
 * @author Chen
 * @version V1.0
 * @date 17/3/11
 */
public class BaseModel<T> {


    /**
     * code : 1
     * msg : 该手机号码已注册
     * data : {}
     */

    private int Code;
    private String Message;
    private T Data;
    private String jsonData;

    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        this.Code = code;
    }

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        Message = message;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        Data = data;
    }

    public String getJsonData() {
        Gson gson = new Gson();
        return gson.toJson(getData());
    }

    public void setJsonData(String jsonData) {
        this.jsonData = jsonData;
    }

    public static class DataBean {
    }
}
